//
//  NetServer.h
//  Word Memory
//
//  Created by TianWan on 15/11/2.
//  Copyright (c) 2015年 天玩. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^ResultBlock)(id result);
typedef void(^ErrorBlock)(id error);

@interface NetServer : NSObject

+(instancetype)shareInstance;

- (void)POST:(NSString *)url parameters:(id)params userAgent:(NSString *)userAgent uuid:(NSString *)uuid resultBlock:(ResultBlock)block errorBlock:(ErrorBlock)errorBlock withDialog:(BOOL)show model:(id)model;


- (void)MapPOST:(NSString *)url parameters:(id)params userAgent:(NSString *)userAgent uuid:(NSString *)uuid resultBlock:(ResultBlock)block errorBlock:(ErrorBlock)errorBlock withDialog:(BOOL)show model:(id)model;

@end
